Cdr circuit

ABSTRACT

A CDR circuit includes a clock recovery circuit that generates, from an external clock, a first clock with which data of a received data signal is to be sampled and a second clock with which an edge of the received data signal is to be sampled and adjusts phases of the first clock and the second clock. The CDR circuit includes a phase detecting circuit that outputs a result of sampling of the received data signal with the first clock as a data sampling result and a result of sampling of the received data signal with the second clock as an edge sampling result. The CDR circuit includes a result comparing circuit that determines that a false lock condition has occurred and outputs a false lock condition detection signal if the edge sampling result matches with the data pattern.

CROSS-REFERENCE TO RELATED APPLICATION

This application is based upon and claims the benefit of priority fromthe prior Japanese Patent Application No. 2011-207557, filed on Sep. 22,2011, the entire contents of which are incorporated herein by reference.

BACKGROUND

1. Field

Embodiments described herein relate generally to a Clock Data Recovery(CDR) CIRCUIT.

2. Background Art

Conventional CDR circuits used for fast serial data transmission canfall into a false lock condition because of the nature of their circuitcharacteristics.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an eye pattern of a received data signal including adeterministic jitter, showing a phase to be locked;

FIG. 2 is an eye pattern of a received data signal including adeterministic jitter, showing a normal lock condition;

FIG. 3 is an eye pattern of a received data signal including adeterministic jitter, showing a false lock condition;

FIG. 4 is a diagram showing an example of a configuration of a CDRcircuit 100 according to a first embodiment;

FIG. 5 is a diagram showing an example of a configuration of a CDRcircuit 200 according to the second embodiment;

FIG. 6 is a diagram showing an example of a configuration of a CDRcircuit 300 according to the third embodiment;

FIG. 7 is a diagram showing an example of a configuration of a CDRcircuit 400 according to the fourth embodiment; and

FIG. 8 is a diagram showing an example of a configuration of a CDRcircuit 500 according to the fifth embodiment.

DETAILED DESCRIPTION

A CDR circuit according to an embodiment includes a clock recoverycircuit that generates, from an external clock, a first clock as a datasampling clock with which data of a received data signal is to besampled and a second clock as an edge sampling clock with which an edgeof the received data signal is to be sampled and adjusts phases of thefirst clock and the second clock. The CDR circuit includes a phasedetecting circuit that outputs a result of sampling of the received datasignal with the first clock as a data sampling result and a result ofsampling of the received data signal with the second clock as an edgesampling result. The CDR circuit includes a result comparing circuitthat compares the edge sampling result with a preset data pattern, anddetermines that a false lock condition has occurred and outputs a falselock condition detection signal if the edge sampling result matches withthe data pattern.

The clock recovery circuit adjusts the phases of the first clock and thesecond clock based on the data sampling result and the edge samplingresult.

The clock recovery circuit resets adjustment of the phases of the firstclock and the second clock when the false lock condition detectionsignal is input to the clock recovery circuit.

FIG. 1 shows an eye pattern of a received data signal including adeterministic jitter, showing a phase to be locked. FIG. 2 shows an eyepattern of a received data signal including a deterministic jitter,showing a normal lock condition. FIG. 3 shows an eye pattern of areceived data signal including a deterministic jitter, showing a falselock condition.

As shown in FIG. 1, in the eye pattern of the received data signalincluding the deterministic jitter, a section corresponding to one unitinterval (UI) is ideally locked.

That is, in the lock condition, the data sampling clock with which datais to be sampled is locked to the phase of the data of the data pattern,and the edge sampling clock with which an edge is to be sampled islocked to the phase of the edge of the data pattern (FIG. 2).

A CDR circuit incorporating a phase detecting circuit such as a binaryphase detector has an advantage that it has a simple configuration.However, such a CDR circuit can only obtain phase information as towhether the phase is delayed or advanced that does not include themagnitude of a phase difference.

As a result, if the received data signal includes much deterministicjitters (Dj) such as inter-symbol interference (ISI), a condition inwhich a false phase is locked rather than a phase originally intended tobe locked (a condition in which sampling with the data sampling clockoccurs at a time during transition of the received data signal) canoccur (FIG. 3). In the following, this condition will be referred to asa false lock condition. In the false lock condition, the data can beread out with the edge sampling clock, with which the edge wouldotherwise be sampled.

That is, it is possible that the CDR circuit in the false lock conditioncannot properly read out data and cannot recover from the false lockcondition.

To solve these problems, CDR circuits capable of detecting a false lockcondition and recovering from the false lock condition will be proposedin the following description of embodiments.

In the following, the embodiments will be described with reference tothe drawings.

First Embodiment

FIG. 4 is a diagram showing an example of a configuration of a CDRcircuit 100 according to a first embodiment.

As shown in FIG. 4, the CDR circuit 100 is configured to output areceived data signal (fast serial data encoded by an 8B10B encoder)sampled with a clock. The CDR circuit 100 is used for PeripheralComponent Interconnect (PCI) Express, Serial Advanced TechnologyAttachment (SATA), or USB3.0 (Super Speed USB).

The CDR circuit 100 includes a phase detecting circuit 1, a clockrecovery circuit 2, and a result comparing circuit 3.

The clock recovery circuit 2 is configured to generate, from an externalclock (not shown), a first clock as a data sampling clock with whichdata of the received data signal is to be sampled and a second clock asan edge sampling clock with which an edge of the received data signal isto be sampled.

The clock recovery circuit 2 determines whether the phase of the firstclock is delayed or advanced from the phase of the data of the receiveddata signal based on the edge sampling result and the data samplingresult (phase information) output from the phase detecting circuit 1.Then, based on the result of the determination, the clock recoverycircuit 2 adjusts the phases of the first clock and the second clock sothat the phase of the data of the received data signal is locked withthe first clock (or the edge of the received data signal is locked withthe second clock).

The edge of the received data signal and the data to be locked areshifted in phase from each other by a half period, for example.Therefore, the second clock is set to be shifted in phase from the firstclock by a half period, for example.

The phase detecting circuit 1 is configured to output the result ofsampling of the received data signal with the first clock as the datasampling result and the result of sampling of the received data signalwith the second clock as the edge sampling result.

The result comparing circuit 3 is configured to compare the edgesampling result with a preset data pattern, and determine that the falselock condition has occurred and output a false lock condition detectionsignal if the edge sampling result matches with the data pattern. On theother hand, when the result comparing circuit 3 compares the edgesampling result with the data pattern, if the edge sampling result doesnot match with the data pattern, the result comparing circuit 3determines that the false lock condition has not occurred and does notoutput the false lock condition detection signal.

The data pattern is a data pattern obtained by sampling the data of thereceived data signal in a lock condition. In particular, the datapattern is COMMA or K28.5, for example. The data pattern is previouslystored in the result comparing circuit 3.

In general, the CDR circuit receives a known data pattern (that dependson the application) in a lock period. Therefore, it can be determinedthat the false lock condition has occurred if the result of sampling ofthe edge matches with the known data pattern.

The false lock condition detection signal output from the resultcomparing circuit 3 is used in a subsequent signal processing or thelike or used for a controlled recovery from the false lock condition asin an embodiment described later.

Next, an example of an operation of the CDR circuit 100 configured asdescribed above detecting the false lock condition will be described.

First, the clock recovery circuit 2 generates, from an external clock(not shown), the first clock as the data sampling clock with which thedata of the received data signal is to be sampled and the second clockas the edge sampling clock with which the edge of the received datasignal is to be sampled.

Then, the phase detecting circuit 1 outputs the result of sampling ofthe received data signal with the first clock as the data samplingresult and the result of sampling of the received data signal with thesecond clock as the edge sampling result.

Then, the result comparing circuit 3 compares the edge sampling resultoutput from the phase detecting circuit 1 with the preset data pattern,and determines that the false lock condition has occurred and outputsthe false lock condition detection signal if the edge sampling resultmatches with the data pattern.

In this way, the CDR circuit 100 detects the false lock condition.

As described above, the CDR circuit according to the first embodimentcan detect the false lock condition.

Second Embodiment

In the above first embodiment, an example of the configuration of theCDR circuit that detects the false lock condition has been described.

In a second embodiment, an example of a configuration of a CDR circuitthat detects a false lock condition and recovers from the false lockcondition will be described.

FIG. 5 is a diagram showing an example of a configuration of a CDRcircuit 200 according to the second embodiment. In FIG. 5, the samereference numerals as those in FIG. 4 denote the same components asthose in the first embodiment.

As shown in FIG. 5, the CDR circuit 200 includes the phase detectingcircuit 1, the clock recovery circuit 2, and the result comparingcircuit 3, as in the first embodiment.

As in the first embodiment, the result comparing circuit 3 is configuredto compare the edge sampling result with the preset data pattern, anddetermine that the false lock condition has occurred and output thefalse lock condition detection signal if the edge sampling resultmatches with the data pattern.

An outside external system 1000 is configured to output a control signalto the clock recovery circuit 2 in response to the false lock conditiondetection signal.

According to this embodiment, the clock recovery circuit 2 is configuredto reset the adjustment of the phases of the first clock and the secondclock in response to input of the control signal output from the outsideexternal system in response to the false lock condition detectionsignal. That is, when the clock recovery circuit 2 is reset, the clockrecovery circuit 2 is configured to output the first and second clocksgenerated from the external clock (not shown) without adjusting thephases of the first and second clocks.

The remainder of the configuration of the CDR circuit 200 according tothe second embodiment is the same as the CDR circuit 100 according tothe first embodiment.

Next, an example of an operation of the CDR circuit 200 configured asdescribed above will be described.

For example, the result comparing circuit 3 compares the edge samplingresult with the preset data pattern, and determines that the false lockcondition has occurred and outputs the false lock condition detectionsignal if the edge sampling result matches with the data pattern.

In response to the false lock condition detection signal, the outsideexternal system 1000 outputs the control signal to the clock recoverycircuit 2.

In response to input of the control signal output from the outsideexternal system in response to the false lock condition detectionsignal, the clock recovery circuit 2 resets the adjustment of the phasesof the first clock and the second clock.

Then, again based on the edge sampling result and the data samplingresult (phase information) output from the phase detecting circuit 1,the clock recovery circuit 2 determines whether the phase of the firstclock is delayed or advanced from the phase of the data of the receiveddata signal.

Then, based on the result of the determination, the clock recoverycircuit 2 adjusts the phases of the first clock and the second clock sothat the phase of the data of the received data signal is locked withthe first clock (or the edge of the received data signal is locked withthe second clock).

In this way, when the false lock condition is detected, the CDR circuit200 resets the clock recovery circuit 2 and makes the clock recoverycircuit 2 perform locking again.

In this way, the CDR circuit 200 can recover from the false lockcondition.

As described above, the CDR circuit according to the second embodimentcan detect the false lock condition and recover from the false lockcondition.

Third Embodiment

In the above second embodiment, an example of the configuration of theCDR circuit that recovers from the false lock condition by resetting theoperation of the clock recovery circuit in response to the controlsignal output from the external system has been described.

In a third embodiment, an example of a configuration of a CDR circuitthat recovers from the false lock condition by resetting the operationof the clock recovery circuit in response to the false lock conditiondetection signal output from the result comparing circuit will bedescribed.

FIG. 6 is a diagram showing an example of a configuration of a CDRcircuit 300 according to the third embodiment. In FIG. 6, the samereference numerals as those in FIG. 5 denote the same components asthose in the second embodiment.

As shown in FIG. 6, the CDR circuit 300 includes the phase detectingcircuit 1, the clock recovery circuit 2, and the result comparingcircuit 3, as in the second embodiment.

As in the second embodiment, the result comparing circuit 3 isconfigured to compare the edge sampling result with the preset datapattern, and determine that the false lock condition has occurred andoutput the false lock condition detection signal if the edge samplingresult matches with the data pattern.

According to this embodiment, the false lock condition detection signalis input directly to the clock recovery circuit 2. In response to inputof the false lock condition detection signal, the clock recovery circuit2 resets the adjustment of the phases of the first clock and the secondclock. That is, when the clock recovery circuit 2 is reset, the clockrecovery circuit 2 is configured to output the first and second clocksgenerated from the external clock (not shown) without adjusting thephases of the first and second clocks.

The remainder of the configuration of the CDR circuit 300 according tothe third embodiment is the same as the CDR circuit 100 according to thefirst embodiment.

Next, an example of an operation of the CDR circuit 300 configured asdescribed above will be described.

For example, the result comparing circuit 3 compares the edge samplingresult with the preset data pattern, and determines that the false lockcondition has occurred and outputs the false lock condition detectionsignal if the edge sampling result matches with the data pattern.

When the false lock condition detection signal is input to the clockrecovery circuit 2, the clock recovery circuit 2 resets the adjustmentof the phases of the first clock and the second clock.

Then, again based on the edge sampling result and the data samplingresult (phase information) output from the phase detecting circuit 1,the clock recovery circuit 2 determines whether the phase of the firstclock is delayed or advanced from the phase of the data of the receiveddata signal.

Then, based on the result of the determination, the clock recoverycircuit 2 adjusts the phases of the first clock and the second clock sothat the phase of the data of the received data signal is locked withthe first clock (or the edge of the received data signal is locked withthe second clock).

In this way, when the false lock condition is detected, the CDR circuit300 resets the clock recovery circuit 2 and makes the clock recoverycircuit 2 perform locking again as in the second embodiment.

In this way, the CDR circuit 300 can recover from the false lockcondition.

As described above, the CDR circuit according to the third embodimentcan detect the false lock condition and recover from the false lockcondition.

Fourth Embodiment

In the above second and third embodiments, examples of theconfigurations of the CDR circuits that recover from the false lockcondition by resetting the operation of the clock recovery circuit havebeen described.

In a fourth embodiment, an example of a configuration of a CDR circuitthat recovers from the false lock condition by interchanging the firstclock and the second clock (that is, interchanging the data samplingclock and the edge sampling clock) will be described.

FIG. 7 is a diagram showing an example of a configuration of a CDRcircuit 400 according to the fourth embodiment. In FIG. 7, the samereference numerals as those in FIG. 6 denote the same components asthose in the third embodiment.

As shown in FIG. 7, the CDR circuit 400 includes the phase detectingcircuit 1, the clock recovery circuit 2, and the result comparingcircuit 3, as in the third embodiment.

As in the third embodiment, the result comparing circuit 3 is configuredto compare the edge sampling result with the preset data pattern, anddetermine that the false lock condition has occurred and output thefalse lock condition detection signal if the edge sampling resultmatches with the data pattern.

According to this embodiment, when the false lock condition detectionsignal is input to the clock recovery circuit 2, the clock recoverycircuit 2 is configured to interchange the first clock and the secondclock and output the first clock as the edge sampling clock and thesecond clock as the data sampling clock to the phase detecting circuit1.

The remainder of the configuration of the CDR circuit 400 according tothe fourth embodiment is the same as the CDR circuit 300 according tothe third embodiment.

Next, an example of an operation of the CDR circuit 400 configured asdescribed above will be described.

For example, the result comparing circuit 3 compares the edge samplingresult with the preset data pattern, and determines that the false lockcondition has occurred and outputs the false lock condition detectionsignal if the edge sampling result matches with the data pattern.

When the false lock condition detection signal is input to the clockrecovery circuit 2, the clock recovery circuit 2 interchanges the firstclock and the second clock and outputs the first clock as the edgesampling clock and the second clock as the data sampling clock to thephase detecting circuit 1.

Thus, the second clock in the false lock condition serves as the datasampling clock, and the first clock in the false lock condition servesas the edge sampling click.

Therefore, the phase detecting circuit 1 outputs the result of samplingof the received data signal with the second clock in the false lockcondition as the data sampling result and the result of sampling of thereceived data signal with the first clock in the false lock condition asthe edge sampling result.

In the false lock condition, since the data of the received data signalis sampled with the second clock, which would otherwise serve as theedge sampling clock, the second clock is used as the data samplingclock. In this way, the condition in which the data of the received datasignal can be locked with the second clock as the data sampling clock,that is, the lock condition, can be brought about.

As described above, the CDR circuit 400 swaps the roles of the datasampling clock and the edge sampling clock when the CDR circuit 400detects the false lock condition.

In this way, the CDR circuit 400 can recover from the false lockcondition.

As described above, the CDR circuit according to the fourth embodimentcan detect the false lock condition and recover from the false lockcondition.

As an alternative, the clock recovery circuit 2 may interchange thefirst clock and the second clock in response to input of the controlsignal output from the outside external system in response to the falselock condition detection signal described in the second embodiment. Inthis case, the CDR circuit has the same effects and advantages.

Fifth Embodiment

In the above fourth embodiment, an example of the configuration of theCDR circuit that recovers from the false lock condition by the clockrecovery circuit interchanging the first clock and the second clock hasbeen described.

In a fifth embodiment, an example of a configuration of a CDR circuitthat recovers from the false lock condition by the phase detectingcircuit interchanging the first clock and the second clock will bedescribed.

FIG. 8 is a diagram showing an example of a configuration of a CDRcircuit 500 according to the fifth embodiment. In FIG. 8, the samereference numerals as those in FIG. 7 denote the same components asthose in the fourth embodiment.

As shown in FIG. 8, the CDR circuit 500 includes the phase detectingcircuit 1, the clock recovery circuit 2, and the result comparingcircuit 3, as in the fourth embodiment.

As in the first embodiment, the result comparing circuit 3 is configuredto compare the edge sampling result with the preset data pattern, anddetermine that the false lock condition has occurred and output thefalse lock condition detection signal if the edge sampling resultmatches with the data pattern.

The clock recovery circuit 2 is configured to generate, from theexternal clock (not shown), the first clock as the data sampling clockwith which the data of the received data signal is to be sampled and thesecond clock as the edge sampling clock with which the edge of thereceived data signal is to be sampled.

When the false lock condition detection signal is input to the phasedetecting circuit 1, the phase detecting circuit 1 is configured tointerchange the first clock and the second clock and output the resultof sampling of the received data signal with the second clock as thedata sampling result and the result of sampling of the received datasignal with the first clock as the edge sampling result.

The remainder of the configuration of the CDR circuit 500 according tothe fifth embodiment is the same as the CDR circuit 400 according to thefourth embodiment.

Next, an example of an operation of the CDR circuit 500 configured asdescribed above will be described.

For example, the result comparing circuit 3 compares the edge samplingresult with the preset data pattern, and determines that the false lockcondition has occurred and outputs the false lock condition detectionsignal if the edge sampling result matches with the data pattern.

The clock recovery circuit 2 generates, from the external clock (notshown), the first clock as the data sampling clock with which the dataof the received data signal is to be sampled and the second clock as theedge sampling clock with which the edge of the received data signal isto be sampled.

In response to the false lock condition detection signal, the phasedetecting circuit 1 interchanges the first clock and the second clockand outputs the result of sampling of the received data signal with thesecond clock as the data sampling result and the result of sampling ofthe received data signal with the first clock as the edge samplingresult.

Thus, as in the fourth embodiment, the second clock serves as the datasampling clock, and the first clock serves as the edge sampling clock.

As described above, in the false lock condition, since the data of thereceived data signal is sampled with the second clock that wouldotherwise serve as the edge sampling clock, the second clock is used asthe data sampling clock. In this way, the condition in which the data ofthe received data signal can be locked with the second clock as the datasampling clock can be brought about.

As described above, the CDR circuit 500 swaps the roles of the datasampling clock and the edge sampling clock when the CDR circuit 500detects the false lock condition.

In this way, the CDR circuit 500 can recover from the false lockcondition.

As described above, the CDR circuit according to the fifth embodimentcan detect the false lock condition and recover from the false lockcondition.

As an alternative, the phase detecting circuit 1 may interchange thefirst clock and the second clock in response to input of the controlsignal output from the outside external system in response to the falselock condition detection signal described in the second embodiment. Inthis case, the CDR circuit has the same effects and advantages.

While certain embodiments have been described, these embodiments havebeen presented by way of example only, and are not intended to limit thescope of the inventions. Indeed, the novel methods and systems describedherein may be embodied in a variety of other forms; furthermore, variousomissions, substitutions and changes in the form of the methods andsystems described herein may be made without departing from the spiritof the inventions. The accompanying claims and their equivalents areintended to cover such forms or modifications as would fall within thescope and spirit of the inventions.

What is claimed is:
 1. A CDR circuit, comprising: a clock recoverycircuit that generates, from an external clock, a first clock as a datasampling clock with which data of a received data signal is to besampled and a second clock as an edge sampling clock with which an edgeof the received data signal is to be sampled and adjusts phases of thefirst clock and the second clock; a phase detecting circuit that outputsa result of sampling of the received data signal with the first clock asa data sampling result and a result of sampling of the received datasignal with the second clock as an edge sampling result; and a resultcomparing circuit that compares the edge sampling result with a presetdata pattern, and determines that a false lock condition has occurredand outputs a false lock condition detection signal if the edge samplingresult matches with the data pattern, wherein the clock recovery circuitadjusts the phases of the first clock and the second clock based on thedata sampling result and the edge sampling result, and resets adjustmentof the phases of the first clock and the second clock when the falselock condition detection signal is input to the clock recovery circuit.2. The CDR circuit according to claim 1, wherein the clock recoverycircuit adjusts the phases of the first clock and the second clock basedon the data sampling result and the edge sampling result so that phaseof the data of the received data signal is locked with the first clock.3. The CDR circuit according to claim 1, wherein the second clock isshifted in phase from the first clock by a half period.
 4. The CDRcircuit according to claim 1, wherein the clock recovery circuit resetsthe adjustment of the phases of the first clock and the second clock inresponse to input of a control signal output from an external system inresponse to the false lock condition detection signal.
 5. The CDRcircuit according to claim 1, wherein the false lock condition is acondition in which sampling with the data sampling clock occurs at atime during transition of the received data signal.
 6. The CDR circuitaccording to claim 1, wherein the CDR circuit is used for PeripheralComponent Interconnect (PCI) Express, or Serial Advanced TechnologyAttachment (SATA).
 7. The CDR circuit according to claim 1, wherein thedata pattern is COMMA or K28.5.
 8. A CDR circuit, comprising: a clockrecovery circuit that generates a first clock as a data sampling clockwith which data of a received data signal is to be sampled and a secondclock as an edge sampling clock with which an edge of the received datasignal is to be sampled and adjusts phases of the first clock and thesecond clock; a phase detecting circuit that outputs a result ofsampling of the received data signal with the first clock as a datasampling result and a result of sampling of the received data signalwith the second clock as an edge sampling result; and a result comparingcircuit that compares the edge sampling result with a preset datapattern, and determines that a false lock condition has occurred andoutputs a false lock condition detection signal if the edge samplingresult matches with the data pattern.
 9. The CDR circuit according toclaim 8, wherein the clock recovery circuit interchanges the first clockand the second clock in response to the false lock condition detectionsignal and outputs the first clock as the edge sampling clock and thesecond clock as the data sampling clock to the phase detecting circuit,and the phase detecting circuit outputs a result of sampling of thereceived data signal with the second clock as the data sampling resultand a result of sampling of the received data signal with the firstclock as the edge sampling result.
 10. The CDR circuit according toclaim 8, wherein the phase detecting circuit interchanges the firstclock and the second clock in response to the false lock conditiondetection signal and outputs a result of sampling of the received datasignal with the second clock as the data sampling result and a result ofsampling of the received data signal with the first clock as the edgesampling result.
 11. The CDR circuit according to claim 8, wherein theclock recovery circuit adjusts the phases of the first clock and thesecond clock based on the data sampling result and the edge samplingresult so that phase of the data of the received data signal is lockedwith the first clock.
 12. The CDR circuit according to claim 8, whereinthe result comparing circuit determines that the false lock conditionhas not occurred and does not output the false lock condition detectionsignal if the edge sampling result does not match with the data pattern.13. The CDR circuit according to claim 8, wherein the clock recoverycircuit that generates, from an external clock, the first clock and thesecond clock.
 14. The CDR circuit according to claim 8, wherein thesecond clock is shifted in phase from the first clock by a half period.15. The CDR circuit according to claim 9, wherein the clock recoverycircuit interchanges the first clock and the second clock in response toinput of a control signal output from an outside external system inresponse to the false lock condition detection signal.
 16. The CDRcircuit according to claim 10, wherein the clock recovery circuitinterchanges the first clock and the second clock in response to inputof a control signal output from an outside external system in responseto the false lock condition detection signal.
 17. The CDR circuitaccording to claim 8, wherein the false lock condition is a condition inwhich sampling with the data sampling clock occurs at a time duringtransition of the received data signal.
 18. The CDR circuit according toclaim 8, wherein the CDR circuit is used for Peripheral ComponentInterconnect (PCI) Express, or Serial Advanced Technology Attachment(SATA).
 19. The CDR circuit according to claim 8, wherein the datapattern is COMMA or K28.5.